package gt.edu.usac.viewcontroller.backing.app;

import gt.edu.usac.model.am.AppModuleImpl;

import gt.edu.usac.model.vo.edificioViewImpl;
import gt.edu.usac.model.vo.idiomaNivelSeccionDetImpl;
import gt.edu.usac.model.vo.idiomaNivelSeccionViewImpl;
import gt.edu.usac.model.vo.idiomaNivelViewImpl;
import gt.edu.usac.model.vo.idiomaProfesorViewImpl;
import gt.edu.usac.model.vo.reservaSalonViewImpl;
import gt.edu.usac.model.vo.salonViewImpl;
import gt.edu.usac.viewcontroller.utils.ADFUtils;
import gt.edu.usac.viewcontroller.utils.JSFUtils;

import java.util.Calendar;

import javax.faces.component.UIComponent;
import javax.faces.component.UISelectItems;
import javax.faces.component.html.HtmlForm;

import javax.faces.component.html.HtmlPanelGroup;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;

import javax.faces.event.ValueChangeEvent;

import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCDataControl;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.view.faces.component.core.data.CoreColumn;
import oracle.adf.view.faces.component.core.data.CoreTable;
import oracle.adf.view.faces.component.core.input.CoreInputText;
import oracle.adf.view.faces.component.core.input.CoreSelectOneChoice;
import oracle.adf.view.faces.component.core.layout.CorePanelForm;
import oracle.adf.view.faces.component.core.layout.CorePanelGroup;
import oracle.adf.view.faces.component.core.layout.CorePanelHeader;
import oracle.adf.view.faces.component.core.layout.CorePanelHorizontal;
import oracle.adf.view.faces.component.core.nav.CoreCommandButton;


import oracle.adf.view.faces.component.core.nav.CoreCommandLink;
import oracle.adf.view.faces.component.core.output.CoreObjectSpacer;
import oracle.adf.view.faces.component.core.output.CoreOutputText;

import oracle.binding.BindingContainer;
import oracle.binding.OperationBinding;

import oracle.jbo.ApplicationModule;
import oracle.jbo.AttributeList;
import oracle.jbo.Row;
import oracle.jbo.RowSetIterator;
import oracle.jbo.server.ViewRowImpl;

public class NuevoNivel {
    private HtmlForm form1;
    private BindingContainer bindings;
    private CorePanelGroup panelGroup2;
    private CorePanelGroup panelGroup3;
    private CorePanelHeader panelHeader2;
    private CorePanelHeader panelHeader1;
    private CorePanelHeader panelHeader3;
    private CorePanelForm panelForm1;
    private CoreCommandButton commandButton1;
    private CoreSelectOneChoice selectOneChoice1;
    private UISelectItems selectItems1;
    private CoreTable table1;
    private CoreColumn column1;
    private CoreColumn column2;
    private CoreOutputText outputText2;
    private CoreColumn column3;
    private CoreCommandLink commandLink1;
    private CorePanelGroup panelGroup4;
    private CorePanelHeader panelHeader31;
    private CorePanelForm panelForm3;
    private CoreInputText inputText5;
    private CoreInputText inputText6;
    private CoreInputText inputText8;
    private CoreInputText inputText11;
    private CoreInputText inputText12;
    private CoreInputText inputText13;
    private String valorAno;
    private CoreSelectOneChoice selectOneChoice2;
    private UISelectItems selectItems2;
    private CoreSelectOneChoice selectOneChoice3;
    private UISelectItems selectItems3;
    private CoreSelectOneChoice selectOneChoice5;
    private UISelectItems selectItems5;
    private CoreCommandLink commandLink2;
    private CoreTable table2;
    private CoreColumn column5;
    private CoreColumn column7;
    private CoreOutputText outputText14;
    private CoreColumn column8;
    private CoreOutputText outputText15;
    private CoreColumn column9;
    private CoreOutputText outputText16;
    private CoreColumn column10;
    private CoreOutputText outputText17;
    private CoreColumn column11;
    private CoreOutputText outputText18;
    private CoreColumn column12;
    private CoreOutputText outputText19;
    private CoreColumn column13;
    private CoreOutputText outputText20;
    private CoreColumn column14;
    private CoreOutputText outputText21;
    private CoreColumn column22;
    private CoreOutputText outputText22;
    private CoreColumn column23;
    private CoreOutputText outputText23;
    private CoreColumn column27;
    private CoreColumn column29;
    private CoreCommandLink commandLink3;
    private CoreCommandLink commandLink4;
    private CorePanelHorizontal panelHorizontal2;
    private CoreOutputText outputText24;
    private CoreObjectSpacer objectSpacer1;
    private CoreOutputText outputText25;
    private CorePanelGroup panelGroup5;
    private CorePanelForm panelForm4;
    private CoreInputText inputText4;
    private CoreCommandButton commandButton13;
    private CoreCommandButton commandButton14;
    private CoreSelectOneChoice selectOneChoice4;
    private UISelectItems selectItems4;
    private CoreCommandButton commandButton15;
    private CoreSelectOneChoice selectOneChoice7;
    private UISelectItems selectItems7;
    private CorePanelGroup panelGroup6;
    private CorePanelForm panelForm2;
    private CoreInputText inputText2;
    private CoreInputText inputText3;
    private CorePanelHorizontal panelHorizontal1;
    private CoreCommandButton commandButton2;
    private CoreCommandButton commandButton10;
    private CoreCommandButton commandButton3;
    private CorePanelForm panelForm5;
    private CorePanelHorizontal panelHorizontal3;
    private CoreCommandButton commandButton11;
    private CoreCommandButton commandButton19;
    private CoreCommandButton commandButton17;
    private CorePanelHorizontal panelHorizontal4;
    private CorePanelGroup panelGroup7;
    private CoreTable table3;
    private CoreColumn column4;
    private CoreCommandLink commandLink5;
    private CoreColumn column6;
    private CoreOutputText outputText3;
    private CoreColumn column15;
    private CoreCommandLink commandLink7;
    private CoreCommandButton commandButton12;
    private CorePanelGroup panelGroup8;
    private CoreTable table4;
    private CoreColumn column16;
    private CoreCommandLink commandLink6;
    private CoreColumn column17;
    private CoreOutputText outputText4;
    private CoreColumn column18;
    private CoreOutputText outputText5;
    private CoreColumn column19;
    private CoreOutputText outputText6;
    private CoreColumn column20;
    private CoreOutputText outputText7;
    private CoreColumn column21;
    private CoreOutputText outputText8;
    private CoreColumn column24;
    private CoreOutputText outputText9;
    private CoreColumn column25;
    private CoreOutputText outputText10;
    private CoreColumn column26;
    private CoreOutputText outputText11;
    private CoreColumn column28;
    private CoreCommandLink commandLink9;
    private CoreCommandButton commandButton18;
    private CorePanelHorizontal panelHorizontal5;
    private CoreCommandButton commandButton5;
    private CoreCommandButton commandButton9;
    private CoreCommandButton commandButton7;
    private CoreObjectSpacer objectSpacer2;
    private CorePanelHeader panelHeader4;
    private CorePanelHeader panelHeader41;
    private CorePanelHeader panelHeader5;
    private HtmlPanelGroup panelGroup9;
    private CorePanelHeader panelHeader6;
    private CoreCommandButton commandButton8;
    private CoreSelectOneChoice navList4;
    private UISelectItems selectItems10;
    private CoreSelectOneChoice navList5;
    private UISelectItems selectItems11;
    private CoreSelectOneChoice navList6;
    private UISelectItems selectItems12;
    private CoreSelectOneChoice navList1;
    private UISelectItems selectItems6;
    private CoreInputText inputText1;
    private CoreInputText inputText7;
    private CoreSelectOneChoice navList2;
    private UISelectItems selectItems8;
    private CorePanelGroup panelGroup10;
    private CorePanelHeader panelHeader7;
    private CoreCommandButton commandButton6;
    private CoreCommandButton commandButton4;
    private CoreCommandButton commandButton16;

    public void setValorAno(String valorAno) {
        this.valorAno = valorAno;        
    }

    public String getValorAno() {
        this.valorAno = String.valueOf(Calendar.getInstance().get(Calendar.YEAR));
        return valorAno;
    }

    public void setForm1(HtmlForm form1) {
        this.form1 = form1;
    }

    public HtmlForm getForm1() {
        return form1;
    }


    public BindingContainer getBindings() {
        return this.bindings;
    }

    public void setBindings(BindingContainer bindings) {
        this.bindings = bindings;
    }

    public String commandLink1_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("setCurrentRowWithKey");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }        
        DCBindingContainer dbc = (DCBindingContainer)getBindings();
        DCIteratorBinding iterator = dbc.findIteratorBinding("idiomaView1Iterator");  
        if(ADFUtils.getBoundAttributeValue("idioma1")==null)
            return null;
        Row r = iterator.getRowAtRangeIndex((Integer)ADFUtils.getBoundAttributeValue("idioma1"));
        String idIdioma = r.getAttribute("IdIdioma").toString();
        AppModuleImpl service = getAppModule();         
        //System.out.println(service.getidiomaNivelView2().getCurrentRow().getAttribute("IdNivel"));
        idiomaProfesorViewImpl idiomap = service.getidiomaProfesorView1();
        idiomap.setpidioma(idIdioma);
        idiomap.executeQuery();
       /* AppModuleImpl service = getAppModule();
        idiomaNivelViewImpl nivel = service.getidiomaNivelView1();
        Row row=  nivel.getCurrentRow();                
       JSFUtils.setExpressionValue("#{bindings.secIdioma.inputValue}",Integer.valueOf(row.getAttribute("IdIdioma").toString()));
        System.out.println(JSFUtils.resolveExpression("#{bindings.secIdioma.inputValue}"));
        JSFUtils.setExpressionValue("#{bindings.secNivel.inputValue}",Integer.valueOf(row.getAttribute("IdNivel").toString()));
        System.out.println(JSFUtils.resolveExpression("#{bindings.secNivel.inputValue}"));
        operationBinding = bindings.getOperationBinding("ExecuteWithParamsSeccion");
        operationBinding.execute();*/
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",1);
        return null;
    }


    public void setPanelGroup2(CorePanelGroup panelGroup2) {
        this.panelGroup2 = panelGroup2;
    }

    public CorePanelGroup getPanelGroup2() {
        return panelGroup2;
    }


    public void setPanelGroup3(CorePanelGroup panelGroup3) {
        this.panelGroup3 = panelGroup3;
    }

    public CorePanelGroup getPanelGroup3() {
        return panelGroup3;
    }

    public void setPanelHeader2(CorePanelHeader panelHeader2) {
        this.panelHeader2 = panelHeader2;
    }

    public CorePanelHeader getPanelHeader2() {
        return panelHeader2;
    }


    public String commandButton4_action() {
        crearNivel();
        DCBindingContainer dbc = (DCBindingContainer)getBindings();
        DCIteratorBinding iterator = dbc.findIteratorBinding("idiomaView1Iterator");        
        Row r = iterator.getRowAtRangeIndex((Integer)ADFUtils.getBoundAttributeValue("idioma1"));
        String idIdioma = r.getAttribute("IdIdioma").toString();
        AppModuleImpl service = getAppModule();         
        idiomaProfesorViewImpl idiomap = service.getidiomaProfesorView1();
        idiomap.setpidioma(idIdioma);
        idiomap.executeQuery();
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",1);       
        return null;
    }
    
    public void idiomaChange(ValueChangeEvent evt){
            UIComponent c = evt.getComponent();  
      
    /*              
            if(evt.getNewValue()!=null){
                JSFUtils.setExpressionValue("#{bindings.idioma1.inputValue}",String.valueOf(evt.getNewValue()));
            }else{
                JSFUtils.setExpressionValue("#{bindings.idioma1.inputValue}","-1");
            }
            */
            //This step actually invokes Update Model phase for this   
            //component  
            c.processUpdates(FacesContext.getCurrentInstance());
            
            
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParams");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                       return;
            }
        }
    
    public AppModuleImpl getAppModule() {
        FacesContext ctx = FacesContext.getCurrentInstance();
        ValueBinding vb = ctx.getApplication().createValueBinding("#{data}");
        BindingContext bc = (BindingContext)vb.getValue(ctx);
        DCDataControl dc = bc.findDataControl("AppModuleDataControl");
        ApplicationModule am = (ApplicationModule)dc.getDataProvider();
        return (AppModuleImpl)am;
    }


    public String commandButton2_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("Commit");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",0);
        JSFUtils.setExpressionValue("#{bindings.nuevo.inputValue}",false);
        return null;
    }

    public String commandButton3_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("Rollback");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
       /* AppModuleImpl service = getAppModule();
        idiomaNivelViewImpl nivel = service.getidiomaNivelView2();
        if((Boolean) JSFUtils.resolveExpression("#{bindings.nuevo.inputValue}") && nivel.getCurrentRow()!=null)        
            nivel.removeCurrentRow();        */
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",0);
        JSFUtils.setExpressionValue("#{bindings.nuevo.inputValue}",false);
        return null;
    }





    public void setPanelHeader1(CorePanelHeader panelHeader1) {
        this.panelHeader1 = panelHeader1;
    }

    public CorePanelHeader getPanelHeader1() {
        return panelHeader1;
    }


    public void setPanelHeader3(CorePanelHeader panelHeader3) {
        this.panelHeader3 = panelHeader3;
    }

    public CorePanelHeader getPanelHeader3() {
        return panelHeader3;
    }


    public void setPanelForm1(CorePanelForm panelForm1) {
        this.panelForm1 = panelForm1;
    }

    public CorePanelForm getPanelForm1() {
        return panelForm1;
    }


    public void setCommandButton1(CoreCommandButton commandButton1) {
        this.commandButton1 = commandButton1;
    }

    public CoreCommandButton getCommandButton1() {
        return commandButton1;
    }

    public void setSelectOneChoice1(CoreSelectOneChoice selectOneChoice1) {
        this.selectOneChoice1 = selectOneChoice1;
    }

    public CoreSelectOneChoice getSelectOneChoice1() {
        return selectOneChoice1;
    }

    public void setSelectItems1(UISelectItems selectItems1) {
        this.selectItems1 = selectItems1;
    }

    public UISelectItems getSelectItems1() {
        return selectItems1;
    }


    public void setTable1(CoreTable table1) {
        this.table1 = table1;
    }

    public CoreTable getTable1() {
        return table1;
    }

    public void setColumn1(CoreColumn column1) {
        this.column1 = column1;
    }

    public CoreColumn getColumn1() {
        return column1;
    }


    public void setColumn2(CoreColumn column2) {
        this.column2 = column2;
    }

    public CoreColumn getColumn2() {
        return column2;
    }

    public void setOutputText2(CoreOutputText outputText2) {
        this.outputText2 = outputText2;
    }

    public CoreOutputText getOutputText2() {
        return outputText2;
    }

    public void setColumn3(CoreColumn column3) {
        this.column3 = column3;
    }

    public CoreColumn getColumn3() {
        return column3;
    }


    public void setCommandLink1(CoreCommandLink commandLink1) {
        this.commandLink1 = commandLink1;
    }

    public CoreCommandLink getCommandLink1() {
        return commandLink1;
    }


    public String commandButton4_action2() {
        crearSeccion();
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",2);        
        return null;
    }


    public void setPanelGroup4(CorePanelGroup panelGroup4) {
        this.panelGroup4 = panelGroup4;
    }

    public CorePanelGroup getPanelGroup4() {
        return panelGroup4;
    }

    public void setPanelHeader31(CorePanelHeader panelHeader31) {
        this.panelHeader31 = panelHeader31;
    }

    public CorePanelHeader getPanelHeader31() {
        return panelHeader31;
    }

    public void setPanelForm3(CorePanelForm panelForm3) {
        this.panelForm3 = panelForm3;
    }

    public CorePanelForm getPanelForm3() {
        return panelForm3;
    }


    public void setInputText5(CoreInputText inputText5) {
        this.inputText5 = inputText5;
    }

    public CoreInputText getInputText5() {
        return inputText5;
    }

    public void setInputText6(CoreInputText inputText6) {
        this.inputText6 = inputText6;
    }

    public CoreInputText getInputText6() {
        return inputText6;
    }


    public void setInputText8(CoreInputText inputText8) {
        this.inputText8 = inputText8;
    }

    public CoreInputText getInputText8() {
        return inputText8;
    }


    public void setInputText11(CoreInputText inputText11) {
        this.inputText11 = inputText11;
    }

    public CoreInputText getInputText11() {
        return inputText11;
    }

    public void setInputText12(CoreInputText inputText12) {
        this.inputText12 = inputText12;
    }

    public CoreInputText getInputText12() {
        return inputText12;
    }

    public void setInputText13(CoreInputText inputText13) {
        this.inputText13 = inputText13;
    }

    public CoreInputText getInputText13() {
        return inputText13;
    }


    public String commandButton7_action() {
       BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("Rollback");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
       /* AppModuleImpl service = getAppModule();   
        service.getidiomaNivelSeccionDet2().getDBTransaction().rollback();*/
      /*  AppModuleImpl service = getAppModule();        
        idiomaNivelSeccionViewImpl seccion = service.getidiomaNivelSeccionView2();           
        if((Boolean) JSFUtils.resolveExpression("#{bindings.nuevo.inputValue}") && seccion.getCurrentRow()!=null){
            idiomaNivelSeccionDetImpl detalle = service.getidiomaNivelSeccionDet2(); 
            while(detalle.getCurrentRow()!=null){
               detalle.removeCurrentRow();
            }
            seccion.removeCurrentRow();       
            service.getDBTransaction().commit();  
        }*/
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",1);        
        JSFUtils.setExpressionValue("#{bindings.nuevo.inputValue}",false);
        JSFUtils.setExpressionValue("#{bindings.nuevoDet.inputValue}",false);
        return null;
    }

    public String commandButton5_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("Commit");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",1);
        JSFUtils.setExpressionValue("#{bindings.nuevo.inputValue}",false);        
        return null;
    }


    public String commandButton8_action() {
         BindingContainer bindings = getBindings();
         OperationBinding operationBinding = 
             bindings.getOperationBinding("Commit");
         Object result = operationBinding.execute();
         if (!operationBinding.getErrors().isEmpty()) {
             return null;
         }
        crearSeccion();
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",2);      
         return null;
    }


    public String commandButton10_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("Commit");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        crearNivel();
        return null;
    }
    
    public String crearNivel(){
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("CrearNivel");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        if(ADFUtils.getBoundAttributeValue("idioma1")!=null){
            DCBindingContainer dbc = (DCBindingContainer)getBindings();
            DCIteratorBinding iterator = dbc.findIteratorBinding("idiomaView1Iterator");        
            Row r = iterator.getRowAtRangeIndex((Integer)ADFUtils.getBoundAttributeValue("idioma1"));
            String idIdioma = r.getAttribute("IdIdioma").toString();
            AppModuleImpl service = getAppModule();
            idiomaNivelViewImpl nivel = service.getidiomaNivelView2();
           nivel.getCurrentRow().setAttribute("IdIdioma",idIdioma);
            JSFUtils.setExpressionValue("#{bindings.nuevo.inputValue}",true);
        }
                
        return null;
    }
    
    public String crearSeccion(){
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("CrearSeccion");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        AppModuleImpl service = getAppModule();
        idiomaNivelSeccionViewImpl seccion = service.getidiomaNivelSeccionView2();
        Row x=  seccion.getCurrentRow();
        JSFUtils.setExpressionValue("#{bindings.nuevo.inputValue}",true);
        setParamsDet();
        if(ADFUtils.getBoundAttributeValue("idioma1")!=null || x.getAttribute("IdIdioma")!=null){            
              
        }
        return null;
    }

    public String commandButton9_action() {
         BindingContainer bindings = getBindings();
         OperationBinding operationBinding = 
             bindings.getOperationBinding("Commit");
         Object result = operationBinding.execute();
         if (!operationBinding.getErrors().isEmpty()) {
             return null;
         }
        crearSeccion();        
        return null;
    }


    public String commandButton11_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("Rollback");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
         JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",0);
        return null;
    }


    public void setSelectOneChoice2(CoreSelectOneChoice selectOneChoice2) {
        this.selectOneChoice2 = selectOneChoice2;
    }

    public CoreSelectOneChoice getSelectOneChoice2() {
        return selectOneChoice2;
    }

    public void setSelectItems2(UISelectItems selectItems2) {
        this.selectItems2 = selectItems2;
    }

    public UISelectItems getSelectItems2() {
        return selectItems2;
    }

    public void setSelectOneChoice3(CoreSelectOneChoice selectOneChoice3) {
        this.selectOneChoice3 = selectOneChoice3;
    }

    public CoreSelectOneChoice getSelectOneChoice3() {
        return selectOneChoice3;
    }

    public void setSelectItems3(UISelectItems selectItems3) {
        this.selectItems3 = selectItems3;
    }

    public UISelectItems getSelectItems3() {
        return selectItems3;
    }


    public void setSelectOneChoice5(CoreSelectOneChoice selectOneChoice5) {
        this.selectOneChoice5 = selectOneChoice5;
    }

    public CoreSelectOneChoice getSelectOneChoice5() {
        return selectOneChoice5;
    }

    public void setSelectItems5(UISelectItems selectItems5) {
        this.selectItems5 = selectItems5;
    }

    public UISelectItems getSelectItems5() {
        return selectItems5;
    }


    public void setCommandLink2(CoreCommandLink commandLink2) {
        this.commandLink2 = commandLink2;
    }

    public CoreCommandLink getCommandLink2() {
        return commandLink2;
    }

    public String commandLink2_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("setCurrentRowWithKey");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        
        AppModuleImpl service = getAppModule();        
        //Trabajando las queries
        idiomaNivelViewImpl nivel = service.getidiomaNivelView2();
        idiomaNivelSeccionViewImpl seccion = service.getidiomaNivelSeccionView2();
        //Eliminando todos los salones asociados
        while(seccion.getCurrentRow()!=null){
           seccion.removeCurrentRow();
        }
        service.getDBTransaction().commit();        
        nivel.removeCurrentRow();
        service.getDBTransaction().commit();
        return null;
    }


    public String commandLink3_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("setCurrentRowWithKey1");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        setParamsDet();
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",2);        
        return null;
    }


    public String commandLink4_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("setCurrentRowWithKey1");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        AppModuleImpl service = getAppModule();
        idiomaNivelSeccionViewImpl seccion = service.getidiomaNivelSeccionView2();
        seccion.removeCurrentRow();
        service.getDBTransaction().commit();
        return null;
    }


    public void setTable2(CoreTable table2) {
        this.table2 = table2;
    }

    public CoreTable getTable2() {
        return table2;
    }

    public void setColumn5(CoreColumn column5) {
        this.column5 = column5;
    }

    public CoreColumn getColumn5() {
        return column5;
    }


    public void setColumn7(CoreColumn column7) {
        this.column7 = column7;
    }

    public CoreColumn getColumn7() {
        return column7;
    }

    public void setOutputText14(CoreOutputText outputText14) {
        this.outputText14 = outputText14;
    }

    public CoreOutputText getOutputText14() {
        return outputText14;
    }

    public void setColumn8(CoreColumn column8) {
        this.column8 = column8;
    }

    public CoreColumn getColumn8() {
        return column8;
    }

    public void setOutputText15(CoreOutputText outputText15) {
        this.outputText15 = outputText15;
    }

    public CoreOutputText getOutputText15() {
        return outputText15;
    }

    public void setColumn9(CoreColumn column9) {
        this.column9 = column9;
    }

    public CoreColumn getColumn9() {
        return column9;
    }

    public void setOutputText16(CoreOutputText outputText16) {
        this.outputText16 = outputText16;
    }

    public CoreOutputText getOutputText16() {
        return outputText16;
    }

    public void setColumn10(CoreColumn column10) {
        this.column10 = column10;
    }

    public CoreColumn getColumn10() {
        return column10;
    }

    public void setOutputText17(CoreOutputText outputText17) {
        this.outputText17 = outputText17;
    }

    public CoreOutputText getOutputText17() {
        return outputText17;
    }

    public void setColumn11(CoreColumn column11) {
        this.column11 = column11;
    }

    public CoreColumn getColumn11() {
        return column11;
    }

    public void setOutputText18(CoreOutputText outputText18) {
        this.outputText18 = outputText18;
    }

    public CoreOutputText getOutputText18() {
        return outputText18;
    }

    public void setColumn12(CoreColumn column12) {
        this.column12 = column12;
    }

    public CoreColumn getColumn12() {
        return column12;
    }

    public void setOutputText19(CoreOutputText outputText19) {
        this.outputText19 = outputText19;
    }

    public CoreOutputText getOutputText19() {
        return outputText19;
    }

    public void setColumn13(CoreColumn column13) {
        this.column13 = column13;
    }

    public CoreColumn getColumn13() {
        return column13;
    }

    public void setOutputText20(CoreOutputText outputText20) {
        this.outputText20 = outputText20;
    }

    public CoreOutputText getOutputText20() {
        return outputText20;
    }

    public void setColumn14(CoreColumn column14) {
        this.column14 = column14;
    }

    public CoreColumn getColumn14() {
        return column14;
    }

    public void setOutputText21(CoreOutputText outputText21) {
        this.outputText21 = outputText21;
    }

    public CoreOutputText getOutputText21() {
        return outputText21;
    }

    public void setColumn22(CoreColumn column22) {
        this.column22 = column22;
    }

    public CoreColumn getColumn22() {
        return column22;
    }

    public void setOutputText22(CoreOutputText outputText22) {
        this.outputText22 = outputText22;
    }

    public CoreOutputText getOutputText22() {
        return outputText22;
    }

    public void setColumn23(CoreColumn column23) {
        this.column23 = column23;
    }

    public CoreColumn getColumn23() {
        return column23;
    }

    public void setOutputText23(CoreOutputText outputText23) {
        this.outputText23 = outputText23;
    }

    public CoreOutputText getOutputText23() {
        return outputText23;
    }

    public void setColumn27(CoreColumn column27) {
        this.column27 = column27;
    }

    public CoreColumn getColumn27() {
        return column27;
    }


    public void setColumn29(CoreColumn column29) {
        this.column29 = column29;
    }

    public CoreColumn getColumn29() {
        return column29;
    }


    public void setCommandLink3(CoreCommandLink commandLink3) {
        this.commandLink3 = commandLink3;
    }

    public CoreCommandLink getCommandLink3() {
        return commandLink3;
    }

    public void setCommandLink4(CoreCommandLink commandLink4) {
        this.commandLink4 = commandLink4;
    }

    public CoreCommandLink getCommandLink4() {
        return commandLink4;
    }


    public void setPanelHorizontal2(CorePanelHorizontal panelHorizontal2) {
        this.panelHorizontal2 = panelHorizontal2;
    }

    public CorePanelHorizontal getPanelHorizontal2() {
        return panelHorizontal2;
    }

    public void setOutputText24(CoreOutputText outputText24) {
        this.outputText24 = outputText24;
    }

    public CoreOutputText getOutputText24() {
        return outputText24;
    }

    public void setObjectSpacer1(CoreObjectSpacer objectSpacer1) {
        this.objectSpacer1 = objectSpacer1;
    }

    public CoreObjectSpacer getObjectSpacer1() {
        return objectSpacer1;
    }

    public void setOutputText25(CoreOutputText outputText25) {
        this.outputText25 = outputText25;
    }

    public CoreOutputText getOutputText25() {
        return outputText25;
    }


    public String commandButton12_action() {
         BindingContainer bindings = getBindings();
         OperationBinding operationBinding = 
             bindings.getOperationBinding("CrearDet");
         Object result = operationBinding.execute();
         if (!operationBinding.getErrors().isEmpty()) {
             return null;
         }
       /* AppModuleImpl service = getAppModule();
        idiomaNivelSeccionViewImpl seccion = service.getidiomaNivelSeccionView2();         
        idiomaNivelSeccionDetImpl detalle = service.getidiomaNivelSeccionDet1();
        Row row=  seccion.getCurrentRow();
        detalle.getCurrentRow().setAttribute("Anio",row.getAttribute("Anio"));
        detalle.getCurrentRow().setAttribute("IdTipoTemporada",row.getAttribute("IdTipoTemporada"));
        
        detalle.getCurrentRow().setAttribute("IdIdioma",row.getAttribute("IdIdioma"));
        detalle.getCurrentRow().setAttribute("IdNivel",row.getAttribute("IdNivel"));
        
        detalle.getCurrentRow().setAttribute("TipoCurso",row.getAttribute("TipoCurso"));
        detalle.getCurrentRow().setAttribute("Seccion",row.getAttribute("Seccion"));   */
        JSFUtils.setExpressionValue("#{bindings.nuevoDet.inputValue}",true);
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",3);        
        return null;
    }


    public void setParamsDet(){
       /* AppModuleImpl service = getAppModule();
        idiomaNivelSeccionViewImpl seccion = service.getidiomaNivelSeccionView2();         
        idiomaNivelSeccionDetImpl detalle = service.getidiomaNivelSeccionDet1();        
        Row row=  seccion.getCurrentRow();
        detalle.setpanio(row.getAttribute("Anio")!=null ? row.getAttribute("Anio").toString():"");
        detalle.setptemp(row.getAttribute("IdTipoTemporada")!=null ? row.getAttribute("IdTipoTemporada").toString():"");
        detalle.setpidio(row.getAttribute("IdIdioma")!=null ? row.getAttribute("IdIdioma").toString():"");
        detalle.setpnivel(row.getAttribute("IdNivel")!=null ? row.getAttribute("IdNivel").toString():"");
        detalle.setptipoc(row.getAttribute("TipoCurso")!=null ? row.getAttribute("TipoCurso").toString():"");
        detalle.setpsec(row.getAttribute("Seccion")!=null ? row.getAttribute("Seccion").toString():"");
        detalle.executeQuery();        */
    }

    public String commandLink5_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("setCurrentRowWithKey2");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        AppModuleImpl service = getAppModule();
        idiomaNivelSeccionDetImpl detalle = service.getidiomaNivelSeccionDet2();            
        detalle.removeCurrentRow();
        service.getDBTransaction().commit();
        return null;
    }


    public void setPanelGroup5(CorePanelGroup panelGroup5) {
        this.panelGroup5 = panelGroup5;
    }

    public CorePanelGroup getPanelGroup5() {
        return panelGroup5;
    }

    public void setPanelForm4(CorePanelForm panelForm4) {
        this.panelForm4 = panelForm4;
    }

    public CorePanelForm getPanelForm4() {
        return panelForm4;
    }


    public void setInputText4(CoreInputText inputText4) {
        this.inputText4 = inputText4;
    }

    public CoreInputText getInputText4() {
        return inputText4;
    }

    public void setCommandButton13(CoreCommandButton commandButton13) {
        this.commandButton13 = commandButton13;
    }

    public CoreCommandButton getCommandButton13() {
        return commandButton13;
    }

    public void setCommandButton14(CoreCommandButton commandButton14) {
        this.commandButton14 = commandButton14;
    }

    public CoreCommandButton getCommandButton14() {
        return commandButton14;
    }

    public String commandLink7_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("setCurrentRowWithKey2");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",3);
        return null;
    }

    public String commandButton13_action() {
  
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",2);        
        JSFUtils.setExpressionValue("#{bindings.nuevoDet.inputValue}",false);
        return null;
    }

    public String commandButton14_action() {
      /*  BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("Rollback");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }*/
       /* AppModuleImpl service = getAppModule();        
        idiomaNivelSeccionDetImpl detalle = service.getidiomaNivelSeccionDet2();
        if((Boolean) JSFUtils.resolveExpression("#{bindings.nuevoDet.inputValue}") && detalle.getCurrentRow()!=null)
        detalle.removeCurrentRow();*/
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",2);
        JSFUtils.setExpressionValue("#{bindings.nuevoDet.inputValue}",false);
        return null;
    }

    public void setSelectOneChoice4(CoreSelectOneChoice selectOneChoice4) {
        this.selectOneChoice4 = selectOneChoice4;
    }

    public CoreSelectOneChoice getSelectOneChoice4() {
        return selectOneChoice4;
    }

    public void setSelectItems4(UISelectItems selectItems4) {
        this.selectItems4 = selectItems4;
    }

    public UISelectItems getSelectItems4() {
        return selectItems4;
    }

    public void setCommandButton15(CoreCommandButton commandButton15) {
        this.commandButton15 = commandButton15;
    }

    public CoreCommandButton getCommandButton15() {
        return commandButton15;
    }

    public String commandButton15_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("CrearDet");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }        
        JSFUtils.setExpressionValue("#{bindings.nuevoDet.inputValue}",true);
        return null;
    }


    public String commandButton1_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("ExecuteWithParams");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }        
        return null;
    }

    public void setSelectOneChoice7(CoreSelectOneChoice selectOneChoice7) {
        this.selectOneChoice7 = selectOneChoice7;
    }

    public CoreSelectOneChoice getSelectOneChoice7() {
        return selectOneChoice7;
    }

    public void setSelectItems7(UISelectItems selectItems7) {
        this.selectItems7 = selectItems7;
    }

    public UISelectItems getSelectItems7() {
        return selectItems7;
    }

    public void setPanelGroup6(CorePanelGroup panelGroup6) {
        this.panelGroup6 = panelGroup6;
    }

    public CorePanelGroup getPanelGroup6() {
        return panelGroup6;
    }


    public void setPanelForm2(CorePanelForm panelForm2) {
        this.panelForm2 = panelForm2;
    }

    public CorePanelForm getPanelForm2() {
        return panelForm2;
    }

    public void setInputText2(CoreInputText inputText2) {
        this.inputText2 = inputText2;
    }

    public CoreInputText getInputText2() {
        return inputText2;
    }

    public void setInputText3(CoreInputText inputText3) {
        this.inputText3 = inputText3;
    }

    public CoreInputText getInputText3() {
        return inputText3;
    }


    public void setPanelHorizontal1(CorePanelHorizontal panelHorizontal1) {
        this.panelHorizontal1 = panelHorizontal1;
    }

    public CorePanelHorizontal getPanelHorizontal1() {
        return panelHorizontal1;
    }

    public void setCommandButton2(CoreCommandButton commandButton2) {
        this.commandButton2 = commandButton2;
    }

    public CoreCommandButton getCommandButton2() {
        return commandButton2;
    }

    public void setCommandButton10(CoreCommandButton commandButton10) {
        this.commandButton10 = commandButton10;
    }

    public CoreCommandButton getCommandButton10() {
        return commandButton10;
    }


    public void setCommandButton3(CoreCommandButton commandButton3) {
        this.commandButton3 = commandButton3;
    }

    public CoreCommandButton getCommandButton3() {
        return commandButton3;
    }


    public String commandButton17_action() {         
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",2);  
        return null;
    }


    public String commandButton18_action() {
       /* BindingContainer bindings = getBindings();
         OperationBinding operationBinding = 
             bindings.getOperationBinding("CreateReserva");
         Object result = operationBinding.execute();
         if (!operationBinding.getErrors().isEmpty()) {
             return null;
         }*/
         JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",4);   
        return null;
    }


    public String commandButton16_action() {
        // Add event code here...
        return null;
    }


    public String commandButton20_action() {
        AppModuleImpl service = getAppModule();        
         reservaSalonViewImpl  reserva = service.getreservaSalonView1();
         salonViewImpl   salon = service.getsalonView4();
         Row row=reserva.getCurrentRow();
         Row sal=salon.getCurrentRow();
         row.setAttribute("IdCentro",sal.getAttribute("IdCentro"));
         row.setAttribute("IdEdificio",sal.getAttribute("IdEdificio"));
         row.setAttribute("IdSalon",sal.getAttribute("IdSalon"));
         JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",2);   
        
        return null;
    }

    public String commandButton16_action2() {
        AppModuleImpl service = getAppModule();        
         reservaSalonViewImpl  reserva = service.getreservaSalonView1();
         salonViewImpl   salon = service.getsalonView4();
         Row row=reserva.getCurrentRow();
         Row sal=salon.getCurrentRow();
         row.setAttribute("IdCentro",sal.getAttribute("IdCentro"));
         row.setAttribute("IdEdificio",sal.getAttribute("IdEdificio"));
         row.setAttribute("IdSalon",sal.getAttribute("IdSalon"));
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("CreateReserva");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        return null;
    }


    public void setPanelForm5(CorePanelForm panelForm5) {
        this.panelForm5 = panelForm5;
    }

    public CorePanelForm getPanelForm5() {
        return panelForm5;
    }


    public String commandButton11_action2() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("agregarReservaSalon");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        JSFUtils.setExpressionValue("#{bindings.mostrar.inputValue}",2);  
        return null;
    }


    public void setPanelHorizontal3(CorePanelHorizontal panelHorizontal3) {
        this.panelHorizontal3 = panelHorizontal3;
    }

    public CorePanelHorizontal getPanelHorizontal3() {
        return panelHorizontal3;
    }

    public void setCommandButton11(CoreCommandButton commandButton11) {
        this.commandButton11 = commandButton11;
    }

    public CoreCommandButton getCommandButton11() {
        return commandButton11;
    }

    public void setCommandButton19(CoreCommandButton commandButton19) {
        this.commandButton19 = commandButton19;
    }

    public CoreCommandButton getCommandButton19() {
        return commandButton19;
    }

    public void setCommandButton17(CoreCommandButton commandButton17) {
        this.commandButton17 = commandButton17;
    }

    public CoreCommandButton getCommandButton17() {
        return commandButton17;
    }

    public String commandButton19_action() {
         BindingContainer bindings = getBindings();
         OperationBinding operationBinding = 
             bindings.getOperationBinding("agregarReservaSalon");
         Object result = operationBinding.execute();
         if (!operationBinding.getErrors().isEmpty()) {
             return null;
         }
        return null;
    }


    public String commandLink9_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = 
            bindings.getOperationBinding("setCurrentRowWithKeyReserva");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        }
        AppModuleImpl service = getAppModule();
        reservaSalonViewImpl  reserva = service.getreservaSalonView1();
        reserva.removeCurrentRow();
        service.getDBTransaction().commit();
        return null;
    }

    public void setPanelHorizontal4(CorePanelHorizontal panelHorizontal4) {
        this.panelHorizontal4 = panelHorizontal4;
    }

    public CorePanelHorizontal getPanelHorizontal4() {
        return panelHorizontal4;
    }

    public void setPanelGroup7(CorePanelGroup panelGroup7) {
        this.panelGroup7 = panelGroup7;
    }

    public CorePanelGroup getPanelGroup7() {
        return panelGroup7;
    }

    public void setTable3(CoreTable table3) {
        this.table3 = table3;
    }

    public CoreTable getTable3() {
        return table3;
    }

    public void setColumn4(CoreColumn column4) {
        this.column4 = column4;
    }

    public CoreColumn getColumn4() {
        return column4;
    }

    public void setCommandLink5(CoreCommandLink commandLink5) {
        this.commandLink5 = commandLink5;
    }

    public CoreCommandLink getCommandLink5() {
        return commandLink5;
    }

    public void setColumn6(CoreColumn column6) {
        this.column6 = column6;
    }

    public CoreColumn getColumn6() {
        return column6;
    }

    public void setOutputText3(CoreOutputText outputText3) {
        this.outputText3 = outputText3;
    }

    public CoreOutputText getOutputText3() {
        return outputText3;
    }

    public void setColumn15(CoreColumn column15) {
        this.column15 = column15;
    }

    public CoreColumn getColumn15() {
        return column15;
    }

    public void setCommandLink7(CoreCommandLink commandLink7) {
        this.commandLink7 = commandLink7;
    }

    public CoreCommandLink getCommandLink7() {
        return commandLink7;
    }

    public void setCommandButton12(CoreCommandButton commandButton12) {
        this.commandButton12 = commandButton12;
    }

    public CoreCommandButton getCommandButton12() {
        return commandButton12;
    }


    public void setPanelGroup8(CorePanelGroup panelGroup8) {
        this.panelGroup8 = panelGroup8;
    }

    public CorePanelGroup getPanelGroup8() {
        return panelGroup8;
    }

    public void setTable4(CoreTable table4) {
        this.table4 = table4;
    }

    public CoreTable getTable4() {
        return table4;
    }

    public void setColumn16(CoreColumn column16) {
        this.column16 = column16;
    }

    public CoreColumn getColumn16() {
        return column16;
    }

    public void setCommandLink6(CoreCommandLink commandLink6) {
        this.commandLink6 = commandLink6;
    }

    public CoreCommandLink getCommandLink6() {
        return commandLink6;
    }

    public void setColumn17(CoreColumn column17) {
        this.column17 = column17;
    }

    public CoreColumn getColumn17() {
        return column17;
    }

    public void setOutputText4(CoreOutputText outputText4) {
        this.outputText4 = outputText4;
    }

    public CoreOutputText getOutputText4() {
        return outputText4;
    }

    public void setColumn18(CoreColumn column18) {
        this.column18 = column18;
    }

    public CoreColumn getColumn18() {
        return column18;
    }

    public void setOutputText5(CoreOutputText outputText5) {
        this.outputText5 = outputText5;
    }

    public CoreOutputText getOutputText5() {
        return outputText5;
    }

    public void setColumn19(CoreColumn column19) {
        this.column19 = column19;
    }

    public CoreColumn getColumn19() {
        return column19;
    }

    public void setOutputText6(CoreOutputText outputText6) {
        this.outputText6 = outputText6;
    }

    public CoreOutputText getOutputText6() {
        return outputText6;
    }

    public void setColumn20(CoreColumn column20) {
        this.column20 = column20;
    }

    public CoreColumn getColumn20() {
        return column20;
    }

    public void setOutputText7(CoreOutputText outputText7) {
        this.outputText7 = outputText7;
    }

    public CoreOutputText getOutputText7() {
        return outputText7;
    }

    public void setColumn21(CoreColumn column21) {
        this.column21 = column21;
    }

    public CoreColumn getColumn21() {
        return column21;
    }

    public void setOutputText8(CoreOutputText outputText8) {
        this.outputText8 = outputText8;
    }

    public CoreOutputText getOutputText8() {
        return outputText8;
    }

    public void setColumn24(CoreColumn column24) {
        this.column24 = column24;
    }

    public CoreColumn getColumn24() {
        return column24;
    }

    public void setOutputText9(CoreOutputText outputText9) {
        this.outputText9 = outputText9;
    }

    public CoreOutputText getOutputText9() {
        return outputText9;
    }

    public void setColumn25(CoreColumn column25) {
        this.column25 = column25;
    }

    public CoreColumn getColumn25() {
        return column25;
    }

    public void setOutputText10(CoreOutputText outputText10) {
        this.outputText10 = outputText10;
    }

    public CoreOutputText getOutputText10() {
        return outputText10;
    }

    public void setColumn26(CoreColumn column26) {
        this.column26 = column26;
    }

    public CoreColumn getColumn26() {
        return column26;
    }

    public void setOutputText11(CoreOutputText outputText11) {
        this.outputText11 = outputText11;
    }

    public CoreOutputText getOutputText11() {
        return outputText11;
    }

    public void setColumn28(CoreColumn column28) {
        this.column28 = column28;
    }

    public CoreColumn getColumn28() {
        return column28;
    }

    public void setCommandLink9(CoreCommandLink commandLink9) {
        this.commandLink9 = commandLink9;
    }

    public CoreCommandLink getCommandLink9() {
        return commandLink9;
    }

    public void setCommandButton18(CoreCommandButton commandButton18) {
        this.commandButton18 = commandButton18;
    }

    public CoreCommandButton getCommandButton18() {
        return commandButton18;
    }


    public void setPanelHorizontal5(CorePanelHorizontal panelHorizontal5) {
        this.panelHorizontal5 = panelHorizontal5;
    }

    public CorePanelHorizontal getPanelHorizontal5() {
        return panelHorizontal5;
    }

    public void setCommandButton5(CoreCommandButton commandButton5) {
        this.commandButton5 = commandButton5;
    }

    public CoreCommandButton getCommandButton5() {
        return commandButton5;
    }

    public void setCommandButton9(CoreCommandButton commandButton9) {
        this.commandButton9 = commandButton9;
    }

    public CoreCommandButton getCommandButton9() {
        return commandButton9;
    }

    public void setCommandButton7(CoreCommandButton commandButton7) {
        this.commandButton7 = commandButton7;
    }

    public CoreCommandButton getCommandButton7() {
        return commandButton7;
    }

    public void setObjectSpacer2(CoreObjectSpacer objectSpacer2) {
        this.objectSpacer2 = objectSpacer2;
    }

    public CoreObjectSpacer getObjectSpacer2() {
        return objectSpacer2;
    }

    public void setPanelHeader4(CorePanelHeader panelHeader4) {
        this.panelHeader4 = panelHeader4;
    }

    public CorePanelHeader getPanelHeader4() {
        return panelHeader4;
    }

    public void setPanelHeader41(CorePanelHeader panelHeader41) {
        this.panelHeader41 = panelHeader41;
    }

    public CorePanelHeader getPanelHeader41() {
        return panelHeader41;
    }


    public void setPanelHeader5(CorePanelHeader panelHeader5) {
        this.panelHeader5 = panelHeader5;
    }

    public CorePanelHeader getPanelHeader5() {
        return panelHeader5;
    }

    public void setPanelGroup9(HtmlPanelGroup panelGroup9) {
        this.panelGroup9 = panelGroup9;
    }

    public HtmlPanelGroup getPanelGroup9() {
        return panelGroup9;
    }

    public void setPanelHeader6(CorePanelHeader panelHeader6) {
        this.panelHeader6 = panelHeader6;
    }

    public CorePanelHeader getPanelHeader6() {
        return panelHeader6;
    }

    public void setCommandButton8(CoreCommandButton commandButton8) {
        this.commandButton8 = commandButton8;
    }

    public CoreCommandButton getCommandButton8() {
        return commandButton8;
    }


    public void setNavList4(CoreSelectOneChoice navList4) {
        this.navList4 = navList4;
    }

    public CoreSelectOneChoice getNavList4() {
        return navList4;
    }

    public void setSelectItems10(UISelectItems selectItems10) {
        this.selectItems10 = selectItems10;
    }

    public UISelectItems getSelectItems10() {
        return selectItems10;
    }

    public void setNavList5(CoreSelectOneChoice navList5) {
        this.navList5 = navList5;
    }

    public CoreSelectOneChoice getNavList5() {
        return navList5;
    }

    public void setSelectItems11(UISelectItems selectItems11) {
        this.selectItems11 = selectItems11;
    }

    public UISelectItems getSelectItems11() {
        return selectItems11;
    }

    public void setNavList6(CoreSelectOneChoice navList6) {
        this.navList6 = navList6;
    }

    public CoreSelectOneChoice getNavList6() {
        return navList6;
    }

    public void setSelectItems12(UISelectItems selectItems12) {
        this.selectItems12 = selectItems12;
    }

    public UISelectItems getSelectItems12() {
        return selectItems12;
    }


    public void setNavList1(CoreSelectOneChoice navList1) {
        this.navList1 = navList1;
    }

    public CoreSelectOneChoice getNavList1() {
        return navList1;
    }

    public void setSelectItems6(UISelectItems selectItems6) {
        this.selectItems6 = selectItems6;
    }

    public UISelectItems getSelectItems6() {
        return selectItems6;
    }

    public void setInputText1(CoreInputText inputText1) {
        this.inputText1 = inputText1;
    }

    public CoreInputText getInputText1() {
        return inputText1;
    }

    public void setInputText7(CoreInputText inputText7) {
        this.inputText7 = inputText7;
    }

    public CoreInputText getInputText7() {
        return inputText7;
    }


    public void setNavList2(CoreSelectOneChoice navList2) {
        this.navList2 = navList2;
    }

    public CoreSelectOneChoice getNavList2() {
        return navList2;
    }

    public void setSelectItems8(UISelectItems selectItems8) {
        this.selectItems8 = selectItems8;
    }

    public UISelectItems getSelectItems8() {
        return selectItems8;
    }


    public void setPanelGroup10(CorePanelGroup panelGroup10) {
        this.panelGroup10 = panelGroup10;
    }

    public CorePanelGroup getPanelGroup10() {
        return panelGroup10;
    }

    public void setPanelHeader7(CorePanelHeader panelHeader7) {
        this.panelHeader7 = panelHeader7;
    }

    public CorePanelHeader getPanelHeader7() {
        return panelHeader7;
    }


    public void setCommandButton6(CoreCommandButton commandButton6) {
        this.commandButton6 = commandButton6;
    }

    public CoreCommandButton getCommandButton6() {
        return commandButton6;
    }

    public void setCommandButton4(CoreCommandButton commandButton4) {
        this.commandButton4 = commandButton4;
    }

    public CoreCommandButton getCommandButton4() {
        return commandButton4;
    }

    public void setCommandButton16(CoreCommandButton commandButton16) {
        this.commandButton16 = commandButton16;
    }

    public CoreCommandButton getCommandButton16() {
        return commandButton16;
    }
}
